package com.copa.module.goods.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author copa
 * @createDate 2021-01-07 16:54
 * @function 类目添加Vo
 */
@Data
public class CategoryAddVo {

    private Long id;

    @ApiModelProperty(value = "类目名字")
    @TableField("name")
    @NotNull
    private String name;

    @ApiModelProperty(value = "父类目id 0为根目录")
    @TableField("pid")
    private Long pid = 0L;

    @ApiModelProperty(value = "排序")
    @TableField("sort_order")
    private Integer sortOrder = 50;

    @ApiModelProperty(value = "类目级别 1为一级目录 2为二级目录")
    @TableField("level")
    private Integer level = 1;

    @ApiModelProperty(value = "类目图片")
    @TableField("pic_url")
    private String picUrl;

}
